package com.xxx.sealedclass;

/**
 * 测试密封类
 */
public class Test {

    public static void main(String[] args) {
        Animal animal = new Dog();
        animal.eat();
    }
}
